<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>靖凯开源</title>
<style type="text/css">
.info {
	font-size: 12px;
	color: red;
	margin-left: 80px;
}

.login_headerContent {
	float: left;
	text-align: left;
}

#login_content .loginForm {
	right: 373px;
	background-color: #70f7ff;
	padding-bottom: 92px;
}
</style>
</head>
<body>
	<div id="login">
		<div id="login_header">
			<h1 class="login_logo">
				<!-- <a href="#"><img src="statics/dwz/themes/default/images/login_logo.gif" /></a> -->
				<a style="font-size: 25px; color: red;">该账号未绑定微账号！ </a><br>
			</h1>
			<div class="login_headerContent">

				<h2 class="login_title" style="font-size: 16px">请输入要绑定的账号</h2>
			</div>
		</div>
		<div id="login_content">
			<div class="loginForm">
				<form class="layui-form">
					<div class="layui-form-item">
						<input class="layui-input" name="name" value="admin1" placeholder="用户名" lay-verify="required" type="text" autocomplete="off">
					</div>
					<div class="layui-form-item">
						<input class="layui-input" name="pwd" value="OSSJK2017" placeholder="密码" lay-verify="required" type="password" autocomplete="off">
					</div>
					<button class="layui-btn login_btn" lay-submit="" lay-filter="bind">登录</button>
				</form>
			</div>
			<div class="login_banner" style="">
				<br> <br>


			</div>

		</div>	

	</div>
</body>
<script type="text/javascript" src="../static/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../static/layui/layui.js"></script>
<script type="text/javascript" src="../static/custom/js/common.js"></script>
<script type="text/javascript">
layui.use([ 'form', 'layer' ], function() {
	var form = layui.form;
	var layer = parent.layer === undefined ? layui.layer : parent.layer;
	var $ = layui.jquery;
	var loginApi = "../bind";
	var unionid = getUrlParam("unionid");
	//绑定按钮事件
	form.on("submit(bind)", function(data) {
		data.field.unionid=unionid;
		loadAjax( loginApi, "post", data.field, function(response) {
			baseCallBack(response, function(response) {
				cache.token.set(response.data);
				location.href = "../toLogin"
			});
		});
		return false;
	})

});
</script>
</html>